<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>班次调度</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	$(document).ready(function() {

	});
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/schedef/tSchedef/modifylist">调度列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="TSchedef"
		action="${ctx}/schedef/tSchedef/modifylist" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
			<ul class="ul-form">
			<li><label>班次名称：</label> <form:input path="schename"
					maxlength="50" class="input-medium" /></li>
			<li><label>班次类型：</label> <form:select path="schetype"
					class="input-medium"
					onchange="typeChange(this.options[this.options.selectedIndex].value)">
					<option value="">--请选择--</option>
					<form:options items="${fns:getDictList('T_Schede_Type')}"
						itemLabel="label" itemValue="value" htmlEscape="false" />
				</form:select></li>
			<li><label>审核状态：</label> <form:select path="auditstatus"
					class="input-medium"
					onchange="typeChange(this.options[this.options.selectedIndex].value)">
					<option value="">--请选择--</option>
					<form:options items="${fns:getDictList('auditstatus')}"
						itemLabel="label" itemValue="value" htmlEscape="false" />
				</form:select></li>

			<li class="btns"><input id="btnSubmit" class="btn btn-primary"
				type="submit" value="查询" /></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>班次名称</th>
				<th>班次类型</th>
				<th>车辆数</th>
				<th>座位数</th>
				<th>预售天数</th>
				<th>状态</th>
				<shiro:hasPermission name="schedef:tSchedefModify:edit">
					<th>操作</th>
				</shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="tSchedefModify">
				<tr>
					<td>${tSchedefModify.schename}</td>
					<td>${fns:getDictLabel(tSchedefModify.schetype, 'T_Schede_Type', '无')}</td>
					<td>${tSchedefModify.vehiclenum}</td>
					<td>${tSchedefModify.totalseats}</td>
					<td>${tSchedefModify.preselldate}</td>
					<td>${fns:getDictLabel(tSchedefModify.auditstatus, 'auditstatus', '无')}</td>
					<shiro:hasPermission name="schedef:tSchedefModify:edit">
						<td><a
							href="${ctx}/schedef/tSchedef/form?id=${tSchedefModify.scheid}&updateorview=M">调度</a>
							<a
							href="${ctx}/schedef/tSchedef/dispatchlist?id=${tSchedefModify.scheid}">历史</a>
						</td>
					</shiro:hasPermission>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>